//Type here your validation function
//Use elemValue as a value of your validated element
//    neededValue as a value to compare with elemValue
//Function must returns true if validation is not successful
//                      false otherwise
function rangeValue() {
    if ((typeof(neededValue) == "undefined") || (isNaN(elemValue))) {
        return true;
    };
    if ((elemValue*1 < neededValue.min) || (elemValue*1 > neededValue.max)) {
        return true;
    } else {
        return false;
    };
};

function getErrorMessage() {
    //Type here default error message for this validator. It's could be replaced
    //by validation options for every used element.
    //You can use %value% to place a current value of validated element
    //You can use %neededValue% to place a neededValue
    var messages = {"en" : "%value% - can't be outside the specified range.",
                    "ru" : "%value% - не может быть за пределами определенного диапазона чисел."};
    messages = $.extend(messages, messagesCur);

    return messages[locale];
};